package student;

import java.util.Scanner;

public class StudentTest {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        Student stu = new Student();
        //循环添加学生姓名
        for (int i = 0; i < Student.stuList.length ; i++) {
            System.out.print("请输入第" + (i+1) + "个学生姓名:");
            String name = sc.next();
            Student.addName(name);
        }
        Student.showName();
    }
}
